﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Vanara.PInvoke;

namespace TestPressure
{
    internal class Alert
    {
        /// <summary>Info消息
        /// 
        /// </summary>
        /// <param name="msg"></param>
        public static void Info(string msg, IWin32Window? owner)
        {
            MessageBox.Show(owner, msg, "友情提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }

        /// <summary>Warn消息
        /// 
        /// </summary>
        /// <param name="msg"></param>
        public static void Warn(string msg, IWin32Window? owner)
        {
            MessageBox.Show(owner, msg, "友情提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
        }

        /// <summary>Error消息
        /// 
        /// </summary>
        /// <param name="msg"></param>
        public static void Error(string msg, IWin32Window? owner)
        {
            MessageBox.Show(owner, msg, "友情提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }
    }
}
